﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
	<class name="Model.Posts,Model" table="POSTS" lazy="true">

		<id name="PostId" column="POSTID" type="Int32" unsaved-value="0">
			<generator class="sequence">
				<param name="sequence">SQ_POSTID</param>
			</generator>
		</id>
		<property column="MODULEID" type="Int32" name="ModuleId"  update="false" insert="false" />
		<property column="BBSUSERID" type="Int32" name="BBSUserID"  update="false" insert="false" />
		<property column="POSTTITLE" type="String" name="PostTitle" length="50" />
		<property column="POSTCONTENT" type="String" name="PostContent" length="50" />
		<property column="VERSION" type="Int32" name="Version" />
		<property column="POSTCREATETIME" type="DateTime" name="PostCreateTime" />
		<property column="ISESSENCE" type="Boolean" name="IsEssence" />
		<property column="ISAVABLE" type="Boolean" name="IsAvable" />
		<property column="ISREPLAYVISABLE" type="Boolean" name="IsReplayVisable" />
		<property column="ISVISABLE" type="Boolean" name="IsVisable" />
		<property column="ESSENCESETTIME" type="DateTime" name="EssenceSetTime" />
		
	</class>
</hibernate-mapping>
